

 <?php 
 if(empty($_POST)){
	 if($_SESSION['Permit']==1)
	 { 
	   
		$sqlsection =sprintf("select * from tblsection ");
	
	 } 
	 
		 
	?>  
	  <script type="text/javascript">
	  
	function test(control)
	  {	  
	   
		   if(document.getElementById('parent_id').value=="")
		   {
		   alert('hay chon section');
		   return 0;
		   }
		   document.detailt.submit();
	  }
	
	  function submitt(control)
	  {	  
	   
		document.getElementById('temp').value=control.value;
		
		document.formEdit.submit();
	  }
	  function changevalue(control)
	  {	  
		 document.getElementById('url').value="article.php?id="+control.value;
	  }
	  </script>
	   <form name="formadd" action="" method="POST" style="visibility:hidden">
	   <input type="hidden" name="temp" id="temp" value=""/>
	   </form>
	
	
		
	  
		<form name="detailt" action="" method="POST">
		<table width="100%" cellpadding="5px">
		<tr>
			<th style="height:30px;background:#008000; color:white;" colspan="2">Thêm chuyên mục</td>
		 
		</tr>
		<tr>
			<td style="background:#CCC; font-weight:bold" width="25%"> Tên </td>
			<td> <input name="name" type="text"  value="" size="50" /></td>
		</tr>
		<tr>
			<td width="25%" style="background:#CCC; font-weight:bold"> Mô tả</td>
			<td><input name="decription" type="text"  value="" size="50" /></td>
		</tr>
		<tr>
			<td align="center" colspan="2">
			
				<input type="submit"  value="Thêm"/>
				<input type="reset"  value="Làm lại"/>
			</td>
		</tr>
	  </table>
		</form>
<?php
}else{
	include ("addSection.php");
}
?>

